package com.learn.springcloud.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.learn.springcloud.web.service.UserService;

@RestController
public class UserController {
	
	private static final Logger logger=LoggerFactory.getLogger(UserController.class);
	
	@Autowired
	private UserService userService;   
	
	@RequestMapping(value="/users")
	public String searchAll() {
		String src = userService.getSysUser(1L);
		return src;
	}  
	
	@RequestMapping(value="/")
	public String index() {
		String str = userService.index();
		return str;
	}   

}
